<?php


namespace backend\modules\business\models;

use common\models\business\BusinessPig;
use yii\db\ActiveRecord;

class Test extends ActiveRecord
{
    // Types


    /**
     * Selecting from the list of answers
     */
    const TYPE_CLOSED = 1;

    /**
     * Writing answer manually
     */
    const TYPE_OPENED = 2;


    /**
     * @return array
     */
    public static function getTypesList()
    {
        return [
            self::TYPE_CLOSED => 'Closed',
            self::TYPE_OPENED => 'Opened',
        ];
    }
}

?>